﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    /// <summary>
    /// 提现实体
    /// </summary>
    public class token_transfer_model {
        [Required]
        public long id { get; set; }
        [Required(ErrorMessage ="请选择状态")]
        public int status { get; set; }
        [Required(ErrorMessage ="请填写备注")]
        public string remark { get; set; }
        /// <summary>
        /// 付款单号
        /// </summary>
        public string transaction_no { get; set; }
        /// <summary>
        /// 操作人id
        /// </summary>
        public long manager_id { get; set; }
        /// <summary>
        /// 代付通道
        /// </summary>
        public PayChannel pay_channel { get { return PayChannel.ChPay; } }
    }
    public class token_tranfer_bank_model {
        [Required]
        public long id { get; set; }
        [Required(ErrorMessage = "请填写开户姓名")]
        public string account_name { get; set; }
        [Required(ErrorMessage = "请填写银行卡号")]
        public string account_no { get; set; }
        [Required(ErrorMessage = "请填写开户银行")]
        public string  bank_name { get; set; }
        [Required(ErrorMessage = "请填写开户支行")]
        public string branch_address { get; set; }
    }
}
